《<!-- 旧版-->
<template>
  <div class="dashboard-container">
    <h2 class="column-title">修改密码</h2>
    <div class="changepassword">
      <el-input placeholder="请输入内容" v-model="input1">
        <template slot="prepend">
          <div class="password">旧密码：</div>
        </template>
      </el-input>
    </div>
    <div class="changepassword">
      <el-input placeholder="请输入内容" v-model="input2">
        <template slot="prepend">
          <div class="password">新密码：</div>
        </template>
      </el-input>
    </div>
    <div class="changepassword">
      <el-input placeholder="请输入内容" v-model="input3">
        <template slot="prepend">
          <div class="password">请再次确认：</div>
        </template>
      </el-input>
    </div>
    <el-row>
      <el-button
        @click="opendialog"
        style="font-size: 16px;margin-left: 420px;padding: 9px"
        type="primary"
      >确认修改</el-button>
    </el-row>

    <el-dialog title="提示" :visible.sync="centerDialogVisible" width="30%" center>
      <span style="font-size: 18px">是否确认修改密码</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="centerDialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button>
      </span>
    </el-dialog>
    <template slot="footer"></template>
  </div>
</template>

<script>
export default {
  data() {
    return {
      centerDialogVisible: false,
      input1: "",
      input2: "",
      input3: ""
    };
  },
  methods: {
    opendialog() {
      this.centerDialogVisible = true;
    }
  }
};
</script>

<style scoped>
.el-button {
  padding: 9px;
  font-size: 15px;
}
.password {
  width: 80px;
}
.changepassword {
  margin-top: 20px;
  margin-bottom: 40px;
  margin-left: 300px;
  margin-right: 300px;
}
* {
  margin: 0;
  padding: 0;
}
.column-title {
  text-align: center; /* 标题居中  */
  font-size: 23px; /* 字体大小  */
  margin: 45px; /* 设置margin值，也可以不设置*/
}

.column-title:after,
.column-title:before {
  content: "";
  border-top: 2px solid #e8e8e8; /* 上边框 --效果图中的横线就是这里的上边框  */
  display: block;
  position: absolute;
  width: 26%;
  top: 60px; /* 这里的top值= 标题的margin + 字体大小/2 ，*/
}

.column-title:before {
  left: 16%; /* 左偏离 */
}

.column-title:after {
  right: 16%; /* 右偏离 == 左偏离 */
}

.el-select .el-input {
  width: 130px;
}
.input-with-select .el-input-group__prepend {
  background-color: #fff;
}
</style>>
